package org.kardigen.lg.main.client.main;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;

public class MainView extends Composite implements MainViewDisplay {

	interface Binder extends UiBinder<Widget, MainView> {
		Binder BINDER = GWT.create(Binder.class);
	}

	@UiField
	Label word;

	@UiField
	Panel imagePanel;

	private Presenter presenter;

	public MainView() {
		initWidget(Binder.BINDER.createAndBindUi(this));
	}

	@Override
   public Widget asWidget() {
		return this;
	}

	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}

	public void setWord(String word) {
		this.word.setText(word);
	}

	public Panel getImagesPanel() {
		return imagePanel;
	}

}
